import 'package:high_help_apps/common/entities/misc/schools/majors_request_entity.dart';

majorsRequestEntityFromJson(MajorsRequestEntity data, Map<String, dynamic> json) {
	if (json['school_id'] != null) {
		data.schoolId = json['school_id'] is String
				? int.tryParse(json['school_id'])
				: json['school_id'].toInt();
	}
	return data;
}

Map<String, dynamic> majorsRequestEntityToJson(MajorsRequestEntity entity) {
	final Map<String, dynamic> data = new Map<String, dynamic>();
	data['school_id'] = entity.schoolId;
	return data;
}